export const setLocal = (name,value) => {
    localStorage.setItem(name,JSON.stringify(value))
};

export const getLocal = (name) => {
    return JSON.parse(localStorage.getItem(name)) || localStorage.getItem(name)
};